# 基于Ubuntu镜像
FROM ubuntu:latest

# 避免安装过程中的交互式提示
ENV DEBIAN_FRONTEND=noninteractive

# 更新包并安装网络工具
RUN apt-get update && apt-get install -y \
    iputils-ping \
    dnsutils \
    curl \
    wget \
    netcat-openbsd \
    traceroute \
    tcpdump \
    iperf3 \
    mtr-tiny \
    nmap \
    bash \
    jq \
    vim \
    procps \
    htop \
    net-tools \
    && apt-get clean \
    && rm -rf /var/lib/apt/lists/*

# 设置工作目录
WORKDIR /app

# 添加标签
LABEL maintainer="Network Administrator" \
      description="Container for network connectivity testing in bridged networks"
